using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;

namespace TimersXP
{
    /// <summary>Code behind of the Timers Host Main Window. This is the first thing that executes on startup, other than App.xaml.cs.</summary>
	public partial class TimersHost : Window
    {
        #region Class Variables
        /// <summary>The model core</summary>
        private readonly ModelCore modelCore;
        #endregion Class Variables

        #region Constructors
        /// <summary>Initializes a new instance of the <see cref="TimersHost"/> class.</summary>
        public TimersHost()
        {
            try
            {
                this.modelCore = ModelCore.GetModelCore();
                this.modelCore.TimersHostWindow = this; //Needed so the Timers Host View Model can set the windows TopMost property to true or false.
                InitializeComponent();
            }
            catch (Exception ex)
            {
                Debug.WriteLine("CTOR Exception: " + ex.Message);
            }
        }
        #endregion Constructors
    }
}